const main = require('../main/main');

describe('taxi fee', function () {
    it('5.6km and no waiting',function(){
        let kilometers = 5.6 ;
        let waitTime = 0 ;
        let fare = main(kilometers,waitTime);

        expect(9).toBe(fare);
    });

    it('10.6km and no waiting',function(){
        let kilometers = 10.6 ;
        let waitTime = 0 ;
        let fare = main(kilometers,waitTime);

        expect(14).toBe(fare);
    });

    it('7.1km and  wait 10 minutes',function(){
        let kilometers = 7.1 ;
        let waitTime = 10 ;
        let fare = main(kilometers,waitTime);

        expect(13).toBe(fare);
    });
});
